import { http } from "@/utils/request";

// 获取分类排行
export const getCategoryRankAPI = (token: string) => {
  return http.get("/category/get/count", {
    headers: { Authorization: `Bearer ${token}` },
  });
};

// 获取角色量
export const getRoleCountAPI = (token: string) => {
  return http.get("/roles/get/count", {
    headers: { Authorization: `Bearer ${token}` },
  });
};

// 获取系统信息
export const getSystemInfoAPI = (token: string) => {
  return http.get("/home", {
    headers: { Authorization: `Bearer ${token}` },
  });
};
